home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Garbo
/
Garbo.cdr
/
mac
/
hypercrd
/
hc1_2_x
/
inptmthd.sit
/
Input Methods
/
card_3715.txt
< prev
next >
Wrap
Text File
|
1989-11-24
|
4KB
|
173 lines
-- card: 3715 from stack: in
-- bmap block id: 3886
-- flags: 4000
-- background id: 2696
-- name: Click Multiple Answers
----- HyperTalk script -----
on closeCard
clearButtons
hide card field "Hint"
hide card field "Silly"
pass closeCard
end closeCard
on clearButtons
lock screen
repeat with b = 1 to the number of buttons
set the hilite of button b to false
end repeat
end clearButtons
on mouseUp
-- if clicked on button toggle its hilite and check if all correct
if word 2 of the target is "button" then
set the hilite of the target to not the hilite of the target
put empty into states
put 0 into count
repeat with b = 1 to the number of buttons
if the hilite of button b then
put "Y" after states
add 1 to count
else put "n" after states
end repeat
-- correct if buttons 1, 3 & 5 selected
if states = "YnYnY" then
rightSound
wait 30
clearButtons
end if
if count > 3 then show card field "Hint"
else hide card field "Hint"
if states = "nYnYn" then
wrongSound
show card field "Silly"
else hide card field "Silly"
end if
end mouseUp
-- part 17 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=17 top=96 right=240 bottom=120
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 18 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=127 top=58 right=192 bottom=354
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 19 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=356 top=55 right=171 bottom=497
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 20 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=320 top=194 right=310 bottom=495
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 21 (button)
-- low flags: 00
-- high flags: 0000
-- rect: left=80 top=248 right=316 bottom=282
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 0
-- text size: 12
-- style flags: 0
-- line height: 16
-- part name:
-- part 16 (field)
-- low flags: 01
-- high flags: 0002
-- rect: left=141 top=196 right=235 bottom=334
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name:
-- part 22 (field)
-- low flags: 81
-- high flags: 0002
-- rect: left=140 top=196 right=253 bottom=334
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 0
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: Hint
-- part 23 (field)
-- low flags: 80
-- high flags: 0002
-- rect: left=140 top=196 right=235 bottom=334
-- title width / last selected line: 0
-- icon id / first selected line: 0 / 0
-- text alignment: 1
-- font id: 3
-- text size: 14
-- style flags: 0
-- line height: 18
-- part name: Silly
-- part contents for card part 16
----- text -----
Click on the pictures that are related.
-- part contents for card part 22
----- text -----
You've selected too many things. Click again to unselect some.
-- part contents for card part 23
----- text -----
You are a very silly person!